3.4.41 \(\int \frac {\log (c (d+e x^2)^p)}{x (f+g x^2)} \, dx\) [341]

Optimal. Leaf size=119 \[ \frac {\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f}-\frac {\log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f}-\frac {p \text {Li}_2\left (-\frac {g \left (d+e x^2\right )}{e f-d g}\right )}{2 f}+\frac {p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f} \]

[Out]

1/2*ln(-e*x^2/d)*ln(c*(e*x^2+d)^p)/f-1/2*ln(c*(e*x^2+d)^p)*ln(e*(g*x^2+f)/(-d*g+e*f))/f-1/2*p*polylog(2,-g*(e*
x^2+d)/(-d*g+e*f))/f+1/2*p*polylog(2,1+e*x^2/d)/f

________________________________________________________________________________________

Rubi [A]
time = 0.14, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 9, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {2525, 36, 29, 31, 2463, 2441, 2352, 2440, 2438} \begin {gather*} -\frac {p \text {PolyLog}\left (2,-\frac {g \left (d+e x^2\right )}{e f-d g}\right )}{2 f}+\frac {p \text {PolyLog}\left (2,\frac {e x^2}{d}+1\right )}{2 f}-\frac {\log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f}+\frac {\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[c*(d + e*x^2)^p]/(x*(f + g*x^2)),x]

[Out]

(Log[-((e*x^2)/d)]*Log[c*(d + e*x^2)^p])/(2*f) - (Log[c*(d + e*x^2)^p]*Log[(e*(f + g*x^2))/(e*f - d*g)])/(2*f)
 - (p*PolyLog[2, -((g*(d + e*x^2))/(e*f - d*g))])/(2*f) + (p*PolyLog[2, 1 + (e*x^2)/d])/(2*f)

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2440

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + c*e*(x/g)])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2463

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_))^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q
_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]

Rule 2525

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.)*((f_) + (g_.)*(x_)^(s_))^(r_.),
 x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(f + g*x^(s/n))^r*(a + b*Log[c*(d + e*x)^p])^q,
x], x, x^n], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q, r, s}, x] && IntegerQ[r] && IntegerQ[s/n] && Intege
rQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0])

Rubi steps

\begin {align*} \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{x \left (f+g x^2\right )} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x (f+g x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {\log \left (c (d+e x)^p\right )}{f x}-\frac {g \log \left (c (d+e x)^p\right )}{f (f+g x)}\right ) \, dx,x,x^2\right )\\ &=\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x} \, dx,x,x^2\right )}{2 f}-\frac {g \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{f+g x} \, dx,x,x^2\right )}{2 f}\\ &=\frac {\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f}-\frac {\log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f}-\frac {(e p) \text {Subst}\left (\int \frac {\log \left (-\frac {e x}{d}\right )}{d+e x} \, dx,x,x^2\right )}{2 f}+\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx,x,x^2\right )}{2 f}\\ &=\frac {\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f}-\frac {\log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f}+\frac {p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f}+\frac {p \text {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x^2\right )}{2 f}\\ &=\frac {\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f}-\frac {\log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f}-\frac {p \text {Li}_2\left (-\frac {g \left (d+e x^2\right )}{e f-d g}\right )}{2 f}+\frac {p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 92, normalized size = 0.77 \begin {gather*} \frac {\log \left (c \left (d+e x^2\right )^p\right ) \left (\log \left (-\frac {e x^2}{d}\right )-\log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )\right )-p \text {Li}_2\left (\frac {g \left (d+e x^2\right )}{-e f+d g}\right )+p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[c*(d + e*x^2)^p]/(x*(f + g*x^2)),x]

[Out]

(Log[c*(d + e*x^2)^p]*(Log[-((e*x^2)/d)] - Log[(e*(f + g*x^2))/(e*f - d*g)]) - p*PolyLog[2, (g*(d + e*x^2))/(-
(e*f) + d*g)] + p*PolyLog[2, 1 + (e*x^2)/d])/(2*f)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.50, size = 732, normalized size = 6.15

method result size
risch \(\text {Expression too large to display}\) \(732\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(e*x^2+d)^p)/x/(g*x^2+f),x,method=_RETURNVERBOSE)

[Out]

-1/2*ln((e*x^2+d)^p)/f*ln(g*x^2+f)+ln((e*x^2+d)^p)/f*ln(x)-p/f*ln(x)*ln((-e*x+(-e*d)^(1/2))/(-e*d)^(1/2))-p/f*
ln(x)*ln((e*x+(-e*d)^(1/2))/(-e*d)^(1/2))-p/f*dilog((-e*x+(-e*d)^(1/2))/(-e*d)^(1/2))-p/f*dilog((e*x+(-e*d)^(1
/2))/(-e*d)^(1/2))+1/2*p/f*sum(ln(x-_alpha)*ln(g*x^2+f)-ln(x-_alpha)*(ln((RootOf(_Z^2*e*g+2*_Z*_alpha*e*g-d*g+
e*f,index=1)-x+_alpha)/RootOf(_Z^2*e*g+2*_Z*_alpha*e*g-d*g+e*f,index=1))+ln((RootOf(_Z^2*e*g+2*_Z*_alpha*e*g-d
*g+e*f,index=2)-x+_alpha)/RootOf(_Z^2*e*g+2*_Z*_alpha*e*g-d*g+e*f,index=2)))-dilog((RootOf(_Z^2*e*g+2*_Z*_alph
a*e*g-d*g+e*f,index=1)-x+_alpha)/RootOf(_Z^2*e*g+2*_Z*_alpha*e*g-d*g+e*f,index=1))-dilog((RootOf(_Z^2*e*g+2*_Z
*_alpha*e*g-d*g+e*f,index=2)-x+_alpha)/RootOf(_Z^2*e*g+2*_Z*_alpha*e*g-d*g+e*f,index=2)),_alpha=RootOf(_Z^2*e+
d))+1/2*I*Pi*csgn(I*c*(e*x^2+d)^p)^2*csgn(I*c)/f*ln(x)-1/4*I*Pi*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)^2/f*
ln(g*x^2+f)+1/2*I*Pi*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)^2/f*ln(x)-1/4*I*Pi*csgn(I*c*(e*x^2+d)^p)^2*csgn
(I*c)/f*ln(g*x^2+f)-1/2*I*Pi*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*csgn(I*c)/f*ln(x)+1/4*I*Pi*csgn(I*c*(e*
x^2+d)^p)^3/f*ln(g*x^2+f)+1/4*I*Pi*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*csgn(I*c)/f*ln(g*x^2+f)-1/2*I*Pi*
csgn(I*c*(e*x^2+d)^p)^3/f*ln(x)-1/2*ln(c)/f*ln(g*x^2+f)+1/f*ln(c)*ln(x)

________________________________________________________________________________________

Maxima [A]
time = 0.56, size = 148, normalized size = 1.24 \begin {gather*} -\frac {1}{2} \, p {\left (\frac {{\left (2 \, \log \left (\frac {x^{2} e}{d} + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-\frac {x^{2} e}{d}\right )\right )} e^{\left (-1\right )}}{f} - \frac {{\left (\log \left (g x^{2} + f\right ) \log \left (\frac {g x^{2} e + f e}{d g - f e} + 1\right ) + {\rm Li}_2\left (-\frac {g x^{2} e + f e}{d g - f e}\right )\right )} e^{\left (-1\right )}}{f}\right )} e - \frac {1}{2} \, {\left (\frac {\log \left (g x^{2} + f\right )}{f} - \frac {\log \left (x^{2}\right )}{f}\right )} \log \left ({\left (x^{2} e + d\right )}^{p} c\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(e*x^2+d)^p)/x/(g*x^2+f),x, algorithm="maxima")

[Out]

-1/2*p*((2*log(x^2*e/d + 1)*log(x) + dilog(-x^2*e/d))*e^(-1)/f - (log(g*x^2 + f)*log((g*x^2*e + f*e)/(d*g - f*
e) + 1) + dilog(-(g*x^2*e + f*e)/(d*g - f*e)))*e^(-1)/f)*e - 1/2*(log(g*x^2 + f)/f - log(x^2)/f)*log((x^2*e +
d)^p*c)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(e*x^2+d)^p)/x/(g*x^2+f),x, algorithm="fricas")

[Out]

integral(log((x^2*e + d)^p*c)/(g*x^3 + f*x), x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(e*x**2+d)**p)/x/(g*x**2+f),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(e*x^2+d)^p)/x/(g*x^2+f),x, algorithm="giac")

[Out]

integrate(log((x^2*e + d)^p*c)/((g*x^2 + f)*x), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )}{x\,\left (g\,x^2+f\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(d + e*x^2)^p)/(x*(f + g*x^2)),x)

[Out]

int(log(c*(d + e*x^2)^p)/(x*(f + g*x^2)), x)

________________________________________________________________________________________